'''
break：中止整个循环结构
'''



str = "ithema"
for i in  str:
    if i == "e":
        print("是e，中断整个循环")
        break
    print(i)


# str1 = 'itheima'
# for i in str1:
#     if i == 'e':
#         print('遇e不打印，中止整个循环')
#         break
#     print(i)